﻿using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Apex.Commons.ConfigurationCenter
{
    internal class DBConfigurationSource : IConfigurationSource
    {
        private DBConfigOptions options;

        public DBConfigurationSource(DBConfigOptions options)
        {
            this.options = options;
        }

        public IConfigurationProvider Build(IConfigurationBuilder builder)
        {
            return new DBConfigurationProvider(options);
        }
    }
}
